<script type="text/javascript">
    $(function(){
        $("#yjyys_hz_toolbar [name='nf']").numberspinner({
            min: 2000,
            max: 2100,
            editable: true
        });
        $("#yjyys_hz_toolbar [name='yf']").numberspinner({
            min: 1,
            max: 12,
            editable: true
        });
        $("#yjyys_hz_datagrid").datagrid({
            singleSelect:true,
            fit:true,
            toolbar:'#yjyys_hz_toolbar',
            rownumbers:true,
            fitColumns:true,
            pageNumber: 1,
            showFooter:true,
            url:'${base}/cwgl/yjyys/hzList',
            queryParams:{
                nf:$("#yjyys_hz_toolbar input[name='nf']").val()||'',
                yf:$("#yjyys_hz_toolbar input[name='yf']").val()||''
            },
            onLoadSuccess:function(){
                $(".datagrid-htable .datagrid-cell").css('text-align', 'center');
            }
        });
        $("#yjyys_hz_toolbar input:button").click(function(){
            $("#yjyys_hz_datagrid").datagrid("load",{
                nf:$("#yjyys_hz_toolbar input[name='nf']").val()||'',
                yf:$("#yjyys_hz_toolbar input[name='yf']").val()||''
            });
        });
    });
</script>
<div class="easyui-layout" fit="true">
    <div id="yjyys_hz" region="center" fit="false">
        <table id="yjyys_hz_datagrid">
            <thead>
            <tr>
                <th data-options="field:'jc',align:'center',width:150" rowspan="2">公司(部)名称</th>
                <th data-options="field:'jysr',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">经营收入</th>
                <th data-options="field:'ywcb',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">业务成本</th>
                <th data-options="field:'ml',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">毛利</th>
                <th data-options="align:'right'" colspan="2">资金占用</th>
                <th data-options="field:'zjcb',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">资金成本</th>
                <th data-options="field:'rlzycb',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">人力资源成本</th>
                <th data-options="field:'lrze',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">利润总额</th>
                <th data-options="field:'khjlr',formatter:formatJeForHtml,align:'right',width:100" rowspan="2">考核净利润</th>
            </tr>
            <tr>
                <th data-options="field:'rjzjzygm',width:100,formatter:formatJeForHtml,align: 'right'">日均资金占用规模</th>
                <th data-options="field:'ed',width:100,formatter:formatJeForHtml,align: 'right'">额度</th>
            </tr>
            </thead>
        </table>
        <div id="yjyys_hz_toolbar">
            <div class="textcon">
                <table class="tb" style="width: 100%">
                    <tr style="width: 100%">
                        <td style="width: 160px"><input name="nf" type="text" value="${nf!}" style="width:53px;"/>
                            年
                            <input name="yf" type="text" value="${yf!}" style="width:53px;"/>
                            月
                        </td>
                        <td style=" padding-left:5px;"><input type="button" value="" class="submit"/></td>
                        <td style="text-align: right;color:red;font-size: 14px">单位：万元</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>